package com.wing.common.services;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletConfig;

public class HtmlStaticTemplateService extends Service {
	private static Map<String, String> htmlPool = new HashMap();

	public static String getHtml(String key) {
		return htmlPool.get(key);
	}

	protected void init(ServletConfig aConfig) throws Exception {
		htmlPool
				.put(
						"configPortlet",
						"<div class='boxd-header'><a href='#' onclick=\"configPortlet($hoderId,$channelId);\" ><img src='/resources/images/tj.gif' width='16' border='0' height='16' /></a></div>");
		htmlPool
				.put(
						"portletHead",
						"<a href='#' onclick='editPortlet(\"$portletInstanceId\",\"$portletype\");'><img src='/resources/images/xg.gif' width='16' height='16' border='0' /></a>&nbsp;" +
						"<a href='#' onclick='deletePortlet(\"$portletInstanceId\",\"$portletype\");'><img src='/resources/images/sc.gif' width='16' height='16' border='0' /></a>");
	}
}
